export default {
	//获取stroage
	getStroage(key) {
		return uni.getStorageSync(key) || '{}'
	},
	//储存
	set(key, val) {
		uni.setStorageSync(key, val);
	},
	//获取
	get(key) {
		return this.getStroage(key);
	},
	//清空指定缓存
	clear(key) {
		uni.removeStorageSync(key, "");
	},
	//清空本地缓存
	clearAll() {
		uni.clearStorage()
	},
};
